package com.webcat.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@TableName("ai_chat_record")
public class DbConversationChatRecord implements Serializable {

    @TableId
    private String id;

    private String userId;

    private String conversationId;

    private String message;

    private String messageType;

    @TableField(exist = false)
    private List<ToolResponse> toolResponseList;

    private Date createTime;

    private int deleteFlag = 0;

    @Data
    public static class ToolResponse {
        private String id;

        private String toolName;

        private String responseData;
    }
}
